import request from '@/utils/request'

// 轮播
export function banners (data) {
  return request({
    url: '/v1/banners',
    method: 'get',
    data
  })
}

// 热门系列
export function hotSeries (data) {
  return request({
    url: '/v1/hot_series',
    method: 'get',
    data
  })
}

// 热门搜索
export function searchHots () {
  return request({
    url: '/v1/search_hots',
    method: 'get'
  })
}

// 公告
export function bulletin(){
  return request({
    url:'/v1/agreements?type&type=notice',
    method:'get'
  })
}

// 公告详情
export function bulletinData(id){
  return request({
    url:`/v1/agreements/${id}`,
    method:'get'
  })
}